<template>
	<view class="banner">
		<swiper indicator-dots autoplay interval="3000" circular class="container" >
			<swiper-item v-for="(item,index) in imgList" :key="index">
				<image :src="item.pic" mode=""></image>
			</swiper-item>
		</swiper>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		props: {
			imgList: {
				type: Array,
				default: []
			}
		}
	}
</script>

<style lang="scss" scoped>
	.banner {
		width: 100%;
		height: 300rpx;

		image {
			width: 100%;
			height: 100%;
		}
	}
</style>